using System.Collections.Generic;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("ApiJobInfo", "作业定时表")]
[SysTable]
public class ApiJobInfo : EntityTenant
{
	public string Name { get; set; }

	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public List<MeterJobInfo> MeterInfo { get; set; }

	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public UpdatePriceRuleDInput MeterPrice { get; set; }

	[SugarColumn(IsNullable = true)]
	public int? IsPriceState { get; set; }

	public string? Remark { get; set; }

	/// <summary>
	/// 操作编码0 抄表 1拉闸 2合闸 3设置定时水电价
	/// </summary>
	public int OperateCode { get; set; }

	/// <summary>
	/// 类型，0预约只执行一次、1每天，2每周，3每月
	/// </summary>
	public int Type { get; set; }

	public string? Hour { get; set; }

	public string? Minute { get; set; }

	public string? Second { get; set; }

	public string? Day { get; set; }

	public string? Month { get; set; }

	public string? Weekly { get; set; }

	public string? Year { get; set; }

	/// <summary>
	/// 0关1开
	/// </summary>
	public int State { get; set; }

	public long? MeterRuleId { get; set; }

	public long? WaterRuleId { get; set; }
}
